package com.leruan.aasimp.action.basiccar;

import javax.annotation.Resource;

import com.leruan.aasimp.service.BasicCarService;
import com.opensymphony.xwork2.ActionSupport;



public class BasiccarAction extends ActionSupport{
	
	
	private static final long serialVersionUID = -3121015110183040325L;
	
	private String username;
	private String password;
	
	@Resource
	private BasicCarService basicCarService;
	
	
	public BasiccarAction(){
		username = "aa";
		password = "bb";
		
	}
	
	
	public String show(){
		
		
		System.out.println(basicCarService);
		System.out.println(username);
		System.out.println(password);
		try {
			basicCarService.save(null);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}
	
	
	public void setBasicCarService(BasicCarService basicCarService) {
		this.basicCarService = basicCarService;
	}

	
	
	
	
}
